{include file="Public:header2"/}
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <form method="get" action="{:url('/admin/pata_list')}" class="layui-form layui-card-header layuiadmin-card-header-auto">
            <!--<div class="layui-form-item">-->
            <!--    <div class="layui-inline">-->
            <!--        <label class="layui-form-label">关键词</label>-->
            <!--        <div class="layui-input-block">-->
            <!--            <input type="text" name="keyword" value="{$Request.get.keyword}" placeholder="请输入盒子名称" autocomplete="off" class="layui-input">-->
            <!--        </div>-->
            <!--    </div>-->
            <!--    <input type="hidden" name="id" value="{$user_id}">-->
            <!--</div>-->
        </form>
        <div class="layui-card-body">
            <xblock>
                <div style="padding-bottom: 10px;">
                    <span style="line-height:40px;float:left;">合计次数： {$total_num}</span>
                    <span style="line-height:40px;float:right;">共有数据： {$count}</span>
                </div>
            </xblock>
            <table class="layui-table">
                <thead>
                <tr>
                    <th>盒子名称</th>
                    <th>盒子图片</th>
                    <th>登顶次数</th>
                </tr>
                </thead>
                <tbody>
                {volist name="list" id="vo"}
                <tr>
                    <td>{$vo['title']}</td>
                    <td><img src="{PHP} echo imageUrl($vo['imgurl']){/php}" style="width:60px;height:60px;"></td>
                    <td>{$vo['number']}</td>
                </tr>
                {/volist}

                {if condition="empty($list)"}
                <tr><td colspan='10' style="text-align:center;">暂时没有数据！</td></tr>
                {/if}

                </tbody>
            </table>
            <div class="my_page layui-box layui-laypage layui-laypage-default">
                {$page|raw}
            </div>
        </div>
    </div>
</div>
{include file="Public:footer"/}
<script type="text/javascript">
    layui.use(['table','laydate'], function(){
        var laydate = layui.laydate;
        //执行一个laydate实例
        laydate.render({
            elem: '#start_time' //指定元素
            ,type : 'date'
            ,trigger : 'click'
        });
        laydate.render({
            elem: '#end_time' //指定元素
            ,type : 'date'
            ,trigger : 'click'
        });
    });
    
    

    


</script>
</body>
</html>


